Skip to content

api: Bump Context to JDK 8 - #12955

Merged
ejona86 merged 2 commits into
grpc:masterfrom
carl-mastrangelo:bumpjdkagain
Jul 30, 2026
Merged

api: Bump Context to JDK 8#12955
ejona86 merged 2 commits into
grpc:masterfrom
carl-mastrangelo:bumpjdkagain

Conversation

@carl-mastrangelo

Copy link
Copy Markdown
Contributor

Java 26 complains about the obsolete version but does actually compile. I can't test JDK 27 so it may just have to nag when it comes out.

Updates #12935

@carl-mastrangelo carl-mastrangelo changed the title Bump Context to JDK 8 api: Bump Context to JDK 8 Jul 30, 2026
@kannanjgithub

Copy link
Copy Markdown
Contributor

We don't know that Java 27 will drop support for Java 8 yet though, so can we continue to set the bytecode option for Java 8 for the Context sourceset until it changes?

@ejona86 ejona86 added the kokoro:run Add this label to a PR to tell Kokoro the code is safe and tests can be run label Jul 30, 2026
@grpc-kokoro grpc-kokoro removed the kokoro:run Add this label to a PR to tell Kokoro the code is safe and tests can be run label Jul 30, 2026
@ejona86

ejona86 commented Jul 30, 2026

Copy link
Copy Markdown
Member

We don't know that Java 27 will drop support for Java 8 yet though

Oh, just saw this comment. It isn't an LTS release, so I doubt it really matters; we're not going to be using it for release builds. And for testing it isn't much of a problem given how few changes are going into Context.

But if we consider the Java 7 removal and how much people are still using Java 8, I do expect we'll see support continue for a while still. So removing it avoids bumping the number every six months.

@ejona86 ejona86 added the kokoro:run Add this label to a PR to tell Kokoro the code is safe and tests can be run label Jul 30, 2026
@grpc-kokoro grpc-kokoro removed the kokoro:run Add this label to a PR to tell Kokoro the code is safe and tests can be run label Jul 30, 2026
@ejona86
ejona86 merged commit 5d0a012 into grpc:master Jul 30, 2026
17 of 18 checks passed
@carl-mastrangelo

Copy link
Copy Markdown
Contributor Author

But if we consider the Java 7 removal and how much people are still using Java 8, I do expect we'll see support continue for a while still. So removing it avoids bumping the number every six months.

Sounds good. Was trying to keep existing structure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants